<div>
  <a [routerLink]="['/']">主页</a> &emsp;&emsp;&emsp;--
  <a [routerLink]="['/product', 1]" >商品详情</a> --
  <input type="button" value="商品详情" (click)="toProductDetails()">

  ----------
  <a [routerLink]="[{outlets: {primary: 'home', aux: 'chat'}}]">开始聊天</a> &emsp;&emsp;&emsp;--
  <a [routerLink]="[{outlets: {aux: null}}]" >结束聊天</a> --


</div>
<router-outlet></router-outlet>
<router-outlet name="aux"></router-outlet>
